<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page">
        
        <header class="bar bar-nav">
          <h1 class="title pull-left" style="width: 45%; font-size: 1.2rem; color: #F36767;">支付成功!</h1>
          <p class="pull-right" style="width: 55%; font-size: .6rem; line-height: .8rem; margin: .3rem 0;">客服会在1个工作日内联系您！稍安勿躁~</p>
        </header>
        
        <div class="content student-investigation" style="top: 2.2rem;">
          <h3 class="text-center" style="background-color: #FFFAE1; margin: 0px; line-height: 2rem;">注意</h3>
          <p class="text-center" style="font-size: .7rem; font-weight: bold; padding: 0 2rem;">为了有助于教练了解您个人信息，请您花费1分钟填写以下信息：</p>
          
          <form action="${ctx.host}/shop/investigation" method="POST">
            
            <input type="hidden" name="orderId" value="${param.order}">
            <input type="hidden" name="_method" value="PATCH">
<!--             
            <div class="list-block" style="padding: 0 0.75rem;">
              
              <p>请提供您的微信二维码图片*<br><small>方便教练扫码添加学员</small></p>
              
              <c:choose>
                <c:when test="${not empty user.wechat.qrcode}">
                  <a href="javascript:void(0);" class="upload-image">可重新上传（已有历史上传记录）</a>
                </c:when>
                <c:otherwise>
                  <a href="javascript:void(0);" class="upload-image">微信二维码(小于2MB)</a>
                </c:otherwise>
              </c:choose>
              <input type="hidden" name="historyQrcodePath" value="${user.wechat.qrcode}">
              <input type="hidden" name="mediaId" value="">
              <div class="img-area hide"></div>
            </div> -->
            
            <div class="list-block">
              <ul>
                <li class="item-content">
                  <div class="item-inner">
                    <div class="item-title">微信或手机：</div>
                    <div class="item-input">
                      <input type="text" name="wechatCode" placeholder="请输入微信号或手机" value="${user.wechat.code}">
                    </div>
                  </div>
                </li>
                <li class="item-content">
                  <div class="item-inner">
                    <div class="item-title">邮箱：</div>
                    <div class="item-input">
                      <input type="text" name="mailbox" placeholder="请输入邮箱" value="${user.mailbox}">
                    </div>
                  </div>
                </li>
                <li class="item-content item-link">
                  <div class="item-inner">
                    <div class="item-title">国家：</div>
                    <div class="item-input">
                      <input type="text" name="countrySelector" placeholder="请选择" value="${countryDisplay}">
                      <input type="hidden" name="country" value="${countryDisplay}">
                    </div>
                  </div>
                </li>
                <li class="item-content item-link pcd-select ${countryValue == 'OTHER' ? 'hide' : ''}">
                  <div class="item-inner">
                    <div class="item-title">省市区：</div>
                    <div class="item-input">
                      <input type="text" name="pcdSelector" placeholder="请选择" value="${prdValue}">
                      <input type="hidden" name="pcd" value="${user.profile.prd}">
                      <input type="hidden" name="province" value="${user.profile.province}">
                      <input type="hidden" name="region" value="${user.profile.region}">
                      <input type="hidden" name="district" value="${user.profile.district}">
                    </div>
                  </div>
                </li>
              </ul>
            </div>
            
            <div class="list-block has-border" style="margin: 0px;">
              <p style="margin-top: 0px;">通讯地址</p>
              <div class="input-group">
                <textarea rows="3" name="address" style="height:3rem;">${user.profile.address}</textarea>
              </div>
            </div>
            
            <div class="list-block" style="margin: 0px; padding: 0px; border: 0px;">
               <ul style="border: 0px;">
                <li class="item-content">
                  <div class="item-inner">
                    <div class="item-title">您的身份：</div>
                    <div class="item-input">
                      <input type="text" name="position" placeholder="请选择你的身份" value="${user.remark.position}">
                    </div>
                  </div>
                </li>
              </ul>
            </div>
            
            <div class="list-block" style="margin: 0px; padding: 0px; border: 0px;">
               <ul style="border: 0px;">
                <li class="item-content">
                  <div class="item-inner">
                    <div class="item-title">您的薪资：</div>
                    <div class="item-input">
                      <input type="text" name="salary" placeholder="请选择你的薪资范围" value="${user.remark.salary}">
                    </div>
                  </div>
                </li>
              </ul>
            </div>
            
            <div class="list-block has-border" style="margin: 0px; padding-top: .75rem;">
              <p style="margin-top: 0px;">备注</p>
              <div class="input-group">
                <textarea class="text-left" rows="3" name="remarks" placeholder="海外党请在备注内填写时差">${user.remark.description}</textarea>
              </div>
            </div>
            
            <div class="content-block" style="margin: 0; padding: 1.75rem .75rem; background-color: #F4F4F4;">
              <a href="javascript:void(0);" style="width: 100%; background-color: #FDDD32; color: #000;" class="button button-big button-success button-fill button-submit">下一步</a>
            </div>
            
          </form>
          
          <!-- <div style="text-align: center; margin-bottom: 20px;">
            <p style="color: #999;"><small>请长按以下客服二维码，获取更多资讯！</small></p>
            <img src="${cloud.prod}/${persist.serviceQrcodes['online-1'].value}-qrcode">
          </div> -->
          
        </div>
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource type="script" root="${ctx.resource}/build" src="js/page/investigation/profile-edit.js" />
    <script type="text/javascript">
      var jsConfig = JSON.parse('${wechatJsConfig}')
      require(['page/investigation/profile-edit'], function(page) {
        page.init({
          jsConfig: jsConfig,
          orderId: '${order.id}'
        })
      })
    </script>
  </body>
</html>